package com.sinog.alarm.mapper.db2;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sinog.alarm.model.AuthUser;
import java.util.List;
import java.util.Map;

/**
 * @desc AuthUserMapper
 * @author wangxj
 * @date -
 */
@DS("db2")
public interface AuthUserMapper extends BaseMapper<AuthUser> {

    /**
     * 根据departId删除auth_user
     * @param codeId codeId
     */
    void deleteAccountByDepartId(String codeId);

    /**
     * 新增账户
     * @param authUser authUser
     */
    void insertAuthUser(AuthUser authUser);

    /**
     * 根据codeId查找auth_user信息
     * @param codeId codeId
     * @return List<Map<String,Object>>
     */
    List<Map<String,Object>> selectAuthUserByCodeId(String codeId);
}